import react, { Fragment } from 'react'
import Link from 'next/link'
import Layout from "../common/Layout"

class UserList extends react.Component {
  render() {
    let text = 'When you need a persistent static container which is closable by user actions'
    return (
      <Layout title='用户列表'>
        <Fragment>
          <h1>It's user list</h1>
          <Link href={`/user/detail?username=${text}`}>
            <a>{text}</a>
          </Link>
        </Fragment>
      </Layout>
    )
  }
}

export default UserList